<?php
/**
 * @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

defined('_JEXEC') or die('Restricted access');
$url = clone(JURI::getInstance());
$path = $this->baseurl.'/templates/'.$this->template;

$showrightColumn = $this->countModules('right');
$showleftColumn = $this->countModules('left');
$showuser6Column = $this->countModules('user6');
$showdiv = $this->countModules('div');


if(JRequest::getCmd('task') != 'edit') $Edit = false; else $Edit = true;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
	<head>
	<jdoc:include type="head" />
	<script src="<?php echo $path ?>/scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="<?php echo $path ?>/scripts/cufon-yui.js" type="text/javascript"></script>
    <script src="<?php echo $path ?>/scripts/cufon-replace.js" type="text/javascript"></script>
    <script src="<?php echo $path ?>/scripts/Arial_Black_900.font.js" type="text/javascript"></script>
    <script src="<?php echo $path ?>/scripts/jquery.infinitecarousel.js" type="text/javascript"></script>
    <script src="<?php echo $path ?>/scripts/imagepreloader.js" type="text/javascript"></script>
	<script type="text/javascript">
	var $j = jQuery.noConflict();
		$j(document).ready(function(){
		$j('.menu-nav li').hover(
			function() {
				$j(this).addClass("active");
				$j(this).find('.ulwrapper').stop(false, true).fadeIn();
				$j(this).find('.ulwrapper .ulwrapper').stop(false, true).fadeOut('fast');
			},
			function() {
				$j(this).removeClass("active");        
				$j(this).find('div').stop(false, true).fadeOut('fast');
			}
		);
		$j('.ulwrapper').hover(
			function() {
				$j('.parent').addClass("active_tab");
			},
			function() {
				$j('.parent').removeClass("active_tab");        
			}
		);
	});
	preloadImages([
		'<?php echo $path ?>/images/button1.gif', 
		'<?php echo $path ?>/images/button1_hover.gif',
		'<?php echo $path ?>/images/button_hover.gif',
		'<?php echo $path ?>/images/button.gif', 
		'<?php echo $path ?>/images/button_slider_hover.png']);
	</script>
    <script type="text/javascript">
	var $j = jQuery.noConflict();
  	$j.fn.cycle.defaults.timeout = 6000;
	$j(function() {
    // run the code in the markup!
    $j('table pre code').not('#skip,#skip2').each(function() {
        eval($j(this).text());
    });
    
    $j('#s4')
		.before('<div id="nav">') 
		.cycle({
        fx:     'fade',
        speed:  'slow',
		autostopCount:   4,
		autostop:   4,
        timeout: 6000,
        pager:  '#nav'
		
    });
});
function onBefore() {
    $j('#output').html("Scrolling image:<br>" + this.src);
    //window.console.log(  $(this).parent().children().index(this) );
}
function onAfter() {
    $j('#output').html("Scroll complete for:<br>" + this.src)
        .append('<h3>' + this.alt + '</h3>');
}
 
</script>
    


	<!--[if IE 6]><script type="text/javascript" src="http://info.template-help.com/files/ie6_warning/ie6_script_other.js"></script><![endif]-->

	<link rel="stylesheet" href="<?php echo $path ?>/css/constant.css" type="text/css" />
	<link rel="stylesheet" href="<?php echo $path ?>/css/template.css" type="text/css" />
	</head>
    <?php
	$menu = & JSite::getMenu();
	if ($menu->getActive() == $menu->getDefault()) {?>
	<body class="first"  id="body">
	<?php
	} else {?>
	<body class="all"  id="body">
	<?php }
	?>
    <div class="main"> 
      <!--header-->
      <div class="header">
            <jdoc:include type="modules" name="user4"  />
            <jdoc:include type="modules" name="user3" style="topmenu" />
            <h1 id="logo"><a href="<?php echo $_SERVER['PHP_SELF']?>" title="Super Team"><img  title="Super Team" src="<?php echo $path ?>/images/logo.png"   alt="Super Team"  /></a></h1>
            <a href="<?php echo $_SERVER['PHP_SELF']?>" class="home"> </a>
            <div class="user_area"><jdoc:include type="modules" name="user1"  /></div>
      </div>
      <!--slider-->
      
      <div class="wrapper-content content-top">
       <?php if ($showuser6Column && !$Edit) : ?>
       <div class="slider">
       <jdoc:include type="modules" name="user6"  /> </div>
       <?php endif;?>
        <div class="clear"> 
          <!--content-->
          <div id="content">
            <div class="clear"> 
            
              
              <!--center-->
              <div class="container">
                <div class="clear">
                  <?php if ($this->getBuffer('message')) : ?>
                  <div class="error err-space">
                    <jdoc:include type="message" />
                  </div>
                  <?php endif; ?>
                  
                    	<div class="top_bg"><?php if ($option!="com_search" && !$Edit) : ?><div class="line_bg1"><div class="line_bg2"></div></div><?php endif;?></div>
                        	<div class="cont_bg">
                            <?php if ($option!="com_search" && !$Edit) : ?>
                            	<div class="line_bg1">
                  					<div class="line_bg2"><?php endif;?>
			                  			<jdoc:include type="component" />  
                                        <?php if ($option!="com_search" && !$Edit) : ?>
                              		 </div>
                 				</div><?php endif;?>
                            </div>
                        <div class="bottom_bg"><?php if ($option!="com_search" && !$Edit) : ?><div class="line_bg1"><div class="line_bg2"></div></div><?php endif;?></div>
                   

                         
                    
                </div>
              </div>
            </div>
            <!--<div class="clear pad60">
           		  right
				  <?php //if ($showrightColumn && !$Edit) : ?>
                  <div id="right">
                    <div class="right-indent">
                      <jdoc:include type="modules" name="right" style="wrapper_box" />
                    </div>
                  </div>
                  <?php //endif;?>
                  left
				  <?php //if ($showleftColumn && !$Edit) : ?>
                  <div id="left">
                    <div class="left-indent">
                      <jdoc:include type="modules" name="left" style="wrapper_box" />
                    </div>
                  </div>
                  <?php //endif;?>
                  center
                  <div class="container">
                    <div class="clear">
                       <div id="inside">
                       <jdoc:include type="modules" name="user5" style="wrapper_box" />
                        </div>
                    </div>
                  </div>
            
            
            </div>
            
            
          --></div>
        </div>
      </div>
      </div>
      <!--footer-->
        <div class="footer">
        	<div class="foot">
         	<div class="copy"><?php echo JText::_('&copy; 2011 | Light Up. All rights reserved.') ?> &nbsp;&nbsp;&nbsp;</div>
            </div>
        </div>
        
<script type="text/javascript"> Cufon.now(); </script>
</body>
</html> 
